import request from '@/utils/request'

export function fetchFileList(query) {
  return request({
    url: '/backend/attachment/list',
    method: 'get',
    params: query
  })
}

export function fetchRemoveFile(id) {
  return request({
    url: '/backend/attachment/remove',
    method: 'post',
    data: {id: id}
  })
}

export function fetchDeleteFile(id) {
  return request({
    url: '/backend/attachment/delete',
    method: 'post',
    data: {id: id}
  })
}
